package upmc.api.aladyn.server.services;

import upmc.api.aladyn.server.interfaces.*;


/**Here are the methods called
 * 
 * @author Z_WANG
 * @since 1.0
 */
public class MethodsCollection {
	
	
	/**To display the position with the type Stringable
	 * 
	 * @param stringable
	 * @return
	 */
	public static String displayStringUseStringable(Stringable stringable)
	{
		System.out.println("using display normal........");
		System.out.println(stringable.getPosition());
		return stringable.getPosition();
	}
	
	/**To display the position with the type AnotherStringable
	 * 
	 * @param stringable
	 * @return 
	 */
	public static String displayStringUseAnotherStringable(AnotherStringable stringable)
	{
		System.out.println("using display normal........");
		System.out.println(stringable.getPosition());
		return stringable.getPosition();
	}
	
	/**To display the position with the type Stringable, but no returned value
	 * 
	 * @param stringable
	 */
	public static void displayVoid(Stringable stringable)
	{
		System.out.println("using display another........");
		System.out.println(stringable.getPosition());
		return;
	}
	
	/**
	 * 
	 * @param stringable
	 * @return
	 */
	public static int displayInt(Stringable stringable)
	{
		System.out.println("using display another........");
		System.out.println(stringable.getPosition());
		return 123;
	}

}
